<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>栏目模型 - Powered By BETOU.NET</title>
<meta name="author" content="BETOU.NET Team" />
<meta name="copyright" content="BETOU.NET" />
<link href="${base}/res/betou/css/common.css" rel="stylesheet" type="text/css"/>
<link href="${base}/res/betou/css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/res/common/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="${base}/res/common/js/common.js"></script>
<script src="${base}/res/betou/js/list_delete.js" type="text/javascript"></script>
<script type="text/javascript">
$().ready(function() {

	var $listForm = $("#listForm");
	var $saveDefaultButton=$("#saveDefaultButton");
	var $saveContentButton=$("#saveContentButton");
	
	$saveDefaultButton.click( function() {
		$.dialog({
			type: "warn",
			content: "您确定保存系统默认字段吗？",
			ok: message("admin.dialog.ok"),
			cancel: message("admin.dialog.cancel"),
			onOk: function() {
				$listForm.attr( "action", "o_save_list.do");
				$listForm.submit( );
			}
		});
	});
	
	$saveContentButton.click( function() {
		$.dialog({
			type: "warn",
			content: "您确定保存内容吗？",
			ok: message("admin.dialog.ok"),
			cancel: message("admin.dialog.cancel"),
			onOk: function() {
				$listForm.attr( "action", "o_priority.do");
				$listForm.submit( );
			}
		});
	});
	
	$("input[name*=priority]").focus(function(){
		$(this).select();
	}).blur( function( ){
		var isDisabled = 0;
		$("input[name*=priority]").each( function( i, e ){
			var eachVal = $(this).val();
			if( !/^\d+$/.test( eachVal ) ){
				$.message("warn", "请填写数字！");
				$saveContentButton.addClass("disabled");
				isDisabled++;
				return;
			}
		});
		if( isDisabled == 0 ){
			$saveContentButton.removeClass("disabled");
		}
		
	})
});

function disInput(o) {
	if(o.checked) {
		$(o).parent().parent().find('.dis').each(function(){$(this).removeAttr('disabled');});
	} else {	
		$(o).parent().parent().find('.dis').each(function(){$(this).attr('disabled','disabled');});
	}
}

</script>
</head>
<body>
	<div class="path">
		<a href="../right.do">首页</a> &raquo; <@s.m "cmsModel.modelChannel"/> <span>(共<span id="pageTotal">${list?size}</span>条记录)</span>
	</div>
	<form id="listForm" action="v_list.do" method="post">
		<input type="hidden" name="modelId" value="${modelId}"/>
		<input type="hidden" name="isChannel" value="${isChannel?string('true','false')}"/>
		<div class="bar">
			<a class="iconButton" href="v_add.do?modelId=${modelId}&isChannel=${isChannel?string('true','false')}">
				<span class="addIcon">&nbsp;</span>添加
			</a>
			<div class="buttonWrap">
				<a href="javascript:;" id="deleteButton" class="iconButton disabled">
					<span class="deleteIcon">&nbsp;</span>删除
				</a>
				<a href="javascript:;"  id="refreshButton" class="iconButton">
					<span class="refreshIcon">&nbsp;</span>刷新
				</a>
				<a href="javascript:;" id="saveContentButton" class="button">保存内容</a>
			</div>
		</div>
		<table id="listTable" class="list">
			<tr>
				<th class="check">
					<input type="checkbox" id="selectAll" />
				</th>
				<th>
					<a href="javascript:;" class="sort" name="field"><@s.m "cmsModelItem.field"/></a>
				</th>
				<th>
					<a href="javascript:;" class="sort" name="dataType"><@s.m "cmsModelItem.dataType"/></a>
				</th>
				<th>
					<a href="javascript:;" class="sort" name="label"><@s.m "cmsModelItem.label"/></a>
				</th>
				<th>
					<a href="javascript:;" class="sort" name="priority"><@s.m "cmsModelItem.priority"/></a>
				</th>
				<th>
					<a href="javascript:;" class="sort" name="custom">系统默认字段</a>
				</th>
				<th>
					<a href="javascript:;" class="sort" name="display"><@s.m "cmsModelItem.display"/></a>
				</th>
				<th>
					<span>操作</span>
				</th>
			</tr>
			<#list list as item>
			<tr>
				<td><input type="checkbox" name="ids" value="${item.id}" /></td>
				<td >${item.field}</td>
				<td ><@s.m "cmsModelItem.type${item.dataType}"/></td>
				<td ><input type="text" name="label" value="${item.label}" style="width:100px" class="text" class="text"/></td>
				<td >
					<input type="text" name="priority" value="${item.priority}" style="width:40px;text-align:center" class="text" />
					<input type="hidden" name="wids" value="${item.id}"/>
				</td>
				<td >
					<#if !item.custom>
						<span class="trueIcon">&nbsp;</span>
					<#else>
						<span class="falseIcon">&nbsp;</span>
					</#if>
				</td>
				<td >
					<input type="checkbox" class="dis" onclick="$('#d${item_index}').val(this.checked)"<#if item.display> checked="checked"</#if>/>
					<input type="hidden"  id="d${item_index}" name="display" value="${item.display?string('true','false')}"/>
				</td>
				<td >
					<a href="v_edit.do?id=${item.id}" >[<@s.m "global.edit"/>]</a>&nbsp;
			 	</td>
			</tr>
			</#list>
			<#assign i=1/>
<tr id="sysDefModel" style="display:none;"><td colspan="8"><@s.m "cmsModelItem.sysDefModel"/>:</td></tr>

<#if !fieldList?seq_contains('name')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">name</td>
	<td  class="dis"><@s.m "cmsModelItem.type1"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.name"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="name"/>
		<input class="dis" type="hidden" name="dataTypes" value="1"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('path')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">path</td>
	<td  class="dis"><@s.m "cmsModelItem.type2"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.path"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="path"/>
		<input class="dis" type="hidden" name="dataTypes" value="2"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('title')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">title</td>
	<td  class="dis"><@s.m "cmsModelItem.type1"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.title"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="title"/>
		<input class="dis" type="hidden" name="dataTypes" value="1"/>
	</td>
</tr>
<#--用于判断是否还有自定义字段未保存-->
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('keywords')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">keywords</td>
	<td  class="dis"><@s.m "cmsModelItem.type1"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.keywords"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="keywords"/>
		<input class="dis" type="hidden" name="dataTypes" value="1"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('description')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">description</td>
	<td  class="dis"><@s.m "cmsModelItem.type4"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.description"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="description"/>
		<input class="dis" type="hidden" name="dataTypes" value="4"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('tplChannel')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">tplChannel</td>
	<td  class="dis"><@s.m "cmsModelItem.type6"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.tplChannel"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="tplChannel"/>
		<input class="dis" type="hidden" name="dataTypes" value="6"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('tplContent')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">tplContent</td>
	<td  class="dis"><@s.m "cmsModelItem.type6"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.tplContent"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="tplContent"/>
		<input class="dis" type="hidden" name="dataTypes" value="6"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>


<#if !fieldList?seq_contains('channelStatic')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">channelStatic</td>
	<td  class="dis"><@s.m "cmsModelItem.type4"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.channelStatic"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="channelStatic"/>
		<input class="dis" type="hidden" name="dataTypes" value="4"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('contentStatic')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">contentStatic</td>
	<td  class="dis"><@s.m "cmsModelItem.type4"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.contentStatic"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="contentStatic"/>
		<input class="dis" type="hidden" name="dataTypes" value="4"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>

<#if !fieldList?seq_contains('priority')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">priority</td>
	<td  class="dis"><@s.m "cmsModelItem.type2"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.priority"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="priority"/>
		<input class="dis" type="hidden" name="dataTypes" value="2"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('display')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">display</td>
	<td  class="dis"><@s.m "cmsModelItem.type8"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.display"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="display"/>
		<input class="dis" type="hidden" name="dataTypes" value="8"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>

<#if !fieldList?seq_contains('finalStep')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">finalStep</td>
	<td  class="dis"><@s.m "cmsModelItem.type2"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.finalStep"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="finalStep"/>
		<input class="dis" type="hidden" name="dataTypes" value="2"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('afterCheck')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">afterCheck</td>
	<td  class="dis"><@s.m "cmsModelItem.type6"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.afterCheck"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="afterCheck"/>
		<input class="dis" type="hidden" name="dataTypes" value="6"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>


<#if !fieldList?seq_contains('commentControl')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">commentControl</td>
	<td  class="dis"><@s.m "cmsModelItem.type8"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.commentControl"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="commentControl"/>
		<input class="dis" type="hidden" name="dataTypes" value="8"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('allowUpdown')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">allowUpdown</td>
	<td  class="dis"><@s.m "cmsModelItem.type8"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.allowUpdown"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="allowUpdown"/>
		<input class="dis" type="hidden" name="dataTypes" value="8"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('viewGroupIds')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">viewGroupIds</td>
	<td  class="dis"><@s.m "cmsModelItem.type7"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.viewGroupIds"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="viewGroupIds"/>
		<input class="dis" type="hidden" name="dataTypes" value="7"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('contriGroupIds')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">contriGroupIds</td>
	<td  class="dis"><@s.m "cmsModelItem.type7"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.contriGroupIds"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="contriGroupIds"/>
		<input class="dis" type="hidden" name="dataTypes" value="7"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('userIds')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">userIds</td>
	<td  class="dis"><@s.m "cmsModelItem.type7"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.userIds"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="userIds"/>
		<input class="dis" type="hidden" name="dataTypes" value="7"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>
<#if !fieldList?seq_contains('link')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">link</td>
	<td  class="dis"><@s.m "cmsModelItem.type1"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.link"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="link"/>
		<input class="dis" type="hidden" name="dataTypes" value="1"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>

<#if !fieldList?seq_contains('txt')>
<tr>
	<td><input type="checkbox" onclick="disInput(this);" checked="checked"/></td>
	<td  class="dis">txt</td>
	<td  class="dis"><@s.m "cmsModelItem.type4"/></td>
	<td ><input class="dis text" type="text"name="labels" value="<@s.m "channel.txt"/>" style="width:100px"/></td>
	<td ><input class="dis text" type="text"name="prioritys" value="10" style="width:40px;text-align:center"/></td>
	<td >
		<span class="trueIcon">&nbsp;</span>
		
	</td>
	<td >
		<input class="dis" type="checkbox" checked="checked" onclick="$('#displays${i}').val(this.checked)"/>
		<input class="dis" type="hidden" id="displays${i}" name="displays" value="true"/>
	</td>
	<td >
		<input class="dis" type="hidden" name="fields" value="txt"/>
		<input class="dis" type="hidden" name="dataTypes" value="4"/>
	</td>
</tr>
<#assign i=i+1/>
</#if>

<tr>
	<td colspan="8">
		<#if i gt 1>
		<input class="button" type="button" value="<@s.m "cmsModelItem.savaList"/>" id="saveDefaultButton"/>
		&nbsp;<script type="text/javascript">$('#sysDefModel').show();</script>
</#if>	
	</td>
</tr>		
		</table>
		<#include "../list_hidden.html"/>
	</form>
</body>
</html>
<#include "/common/alert_message.html"/>
